<template>
  <el-table class="mt-5" stripe border :data="list" style="width: 100%">
    <el-table-column align="center" prop="id" label="编号" width="200">
    </el-table-column>
    <el-table-column
      :formatter="formatTime"
      align="center"
      prop="cTime"
      label="创建时间"
    >
    </el-table-column>
    <el-table-column align="center" prop="name" label="测量类型名称">
    </el-table-column>
    <el-table-column align="center" prop="unit" label="测量类型单位">
    </el-table-column>

    <el-table-column align="center" label="操作">
      <template slot-scope="scope">
        <el-button size="mini" @click="$emit('edit',scope.$index,scope.row)"
          >编辑</el-button
        >
        <el-button
          :loading="scope.row.loading"
          size="mini"
          type="danger"
          @click="$emit('del',scope.$index,scope.row)"
          >删除</el-button
        >
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
    props: ['list'], 

};
</script> 